package vg.services.data_base_manager.data.graph;

/**
 * This is class, which contains all system attributes. 
 * @author tzolotuhin
 */

public class SystemAttributeItem implements Cloneable {
	// Main data
	private int storableId; // id in database
	//private int graphViewId; // id in graph view
	
//=============================================================================
//-----------------Constructors------------------------------------------------
	public SystemAttributeItem(int storableId, int graphViewId) {
		this.storableId = storableId;
		//this.graphViewId = graphViewId;
	}
	
	public SystemAttributeItem() {
		this.storableId = -1;
		//this.graphViewId = -1;
	}
	
	public SystemAttributeItem(SystemAttributeItem item) {
		this.storableId = item.getStorableId();
//		this.graphViewId = item.getGraphViewId();
	}	
	
//=============================================================================
//-----------------PUBLIC METHODS----------------------------------------------	
	public void setStorableId(int storableId) {
		this.storableId = storableId;
	}
	
	public int getStorableId() {
		return storableId;
	}
	
//	public int getGraphViewId() {
//		return graphViewId;
//	}
	
//	public void setGraphViewId(int graphViewId) {
//		this.graphViewId = graphViewId;
//	}
	
	@Override
	public SystemAttributeItem clone() {
		SystemAttributeItem item = new SystemAttributeItem(this);
		return item;
	}
}
